package com.lvyq.qrobot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvyq.qrobot.entity.UserBag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserBagMapper extends BaseMapper<UserBag> {
    @Select("select * from user_bag where name=#{name} and user_id =#{userId} and group_id =#{groupId}")
    UserBag selectByName(@Param("name") String name, @Param("groupId") Integer groupId,@Param("userId") Integer userId);
}
